-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds authentication support for the extension in playground environments #1759
Conversation
0738dc5
to
9daa1bc
Compare
Adds authentication support for the extension in playground environments, integrating cloud token validation and enabling token retrieval from callback URLs dispatched by the cloud. Key changes include: • Auth Token Handling: Simplified by removing unused refresh token logic, as the access token has an extended lifespan. • Token Validation: A static method now checks tokens against playground secrets, using the cloud endpoint for validation. • Callback Integration: Supports token recovery from cloud callback URLs, enhancing seamless access when the user is already authenticaded in the Cloud.
9daa1bc
to
da11bcf
Compare
5494cbb
to
06588b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as advertised ✅.
However, let's refactor the code according to my review and, if possible, let's add a simple unit test, which should be easier once decoding and auth are broken out. To be clear, the test only needs to test how to wind up with a session, not how to get a valid JWT or what the API will do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there. Please see comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The path is not working because it's not supposed to concatenate to the extension base. Also, there's no default, which wasn't what I asked for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ LGTM
…nts (stateful#1759) Adds authentication support for the extension in playground environments, integrating cloud token validation and enabling token retrieval from callback URLs dispatched by the cloud. Key changes include: - **Auth Token Handling:** Simplified by removing unused refresh token logic, as the access-token has an extended lifespan. - **Load from Secrets:** An instance method now checks tokens against playground secrets, using the cloud endpoint for validation. - **Callback Integration:** Supports token recovery from cloud callback URLs, enhancing seamless access when the user is already Authenticated in the Cloud. --------- Co-authored-by: Sebastian Tiedtke <sebastiantiedtke@gmail.com>
Adds authentication support for the extension in playground environments, integrating cloud token validation and enabling token retrieval from callback URLs dispatched by the cloud. Key changes include: